<%@taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %>

<TABLE class="mainService">
    <TR>
        <TD colSpan=1>
            <TABLE class="table0" cellSpacing=0 cellPadding=0 align=center>
                <TR>
                    <TD class="td1"></TD>
                    <TD class="top"></TD>
                    <TD class="topright"></TD>
                </TR>
                <TR>
                    <TD class="middleleft" rowSpan=3></TD>
                    <TD bgcolor="#F0F0F0">
                        <center> <h4>Information Cars</h4></center>
                    </td>
                    <TD class="middleright" rowSpan=3></TD>
                </TR>
                <TR>
                    <TD class="middlecenter"></TD>
                </TR>
                <TR>
                    <TD  class="main">
                        <table class="table1" >
                            <tr>
                                <td rowspan="5" width="200" height="150" >
                                    <a href="CarOrder.do?action=create&carId=${listcar.detailDTO.carId}"><img src="${listcar.detailDTO.imageUrl}" width="150" height="150" align="top" title="order it" ></a>
                                </td>
                                <td width="200" height="20" ><h8>Model Car</h8></td>

                    <td width="686">
                        <a href="Car.do?action=searchmodel&id=${listcar.modelDTO.modelId}">${listcar.modelDTO.modelName}</a>
                    </td>
                </tr>
                <tr>
                    <td height="20" ><h8>Type Car</h8></td>
        <td><a href="Car.do?action=searchtype&id=${listcar.typeDTO.typeId}">${listcar.typeDTO.typeName}</a></td>
    </tr>
    <tr>


        <td height="20" valign="top"><h8>AirConditional</h8> </td>

<td>
    <a href="Car.do?action=searchaircondition&air=${listcar.airConditional}">
        <logic:equal name="listcar" property="airConditional" value="1">
            Yes
        </logic:equal>
        <logic:equal name="listcar" property="airConditional" value="0">
            No
        </logic:equal>
    </a>
</td>
</tr>
<tr>
    <td height="20" valign="top"><h8>Seat Quantity</h8> </td>

<td><a href="Car.do?action=searchseat&qty=${listcar.seatQty}">${listcar.seatQty}</a></td>
</tr>
<tr>
    <td height="20" ><h8>Price</h></td>
    <td><h3>${listcar.price} USD</h3></td>
    </tr>
    <tr>
        <td colspan="3">
            ${listcar.detail}

        </td>
    </tr>

    <tr>
        <td colspan="3" align="right"><a href="CarOrder.do?action=create&carId=${listcar.detailDTO.carId}" id ="more">booking</a></td>
    </tr>
</table>
</TD>
</TR>

<TR>
    <TD class="bottom"><IMG border=0 alt="" src="img/pod_main_bottom_left.gif"></TD>
    <TD class="bottomright"><P align=right>&nbsp;</P></TD>
    <TD class="bottomleft"><IMG border=0 alt="" src="img/pod_main_bottom_right.gif"></TD>
</TR>
</TABLE>
</TD>
</TR>
</TABLE>

<TABLE class="mainService">
    <TR>
        <TD colSpan=1>
            <TABLE class="table0" cellSpacing=0 cellPadding=0 align=center>
                <TR>
                    <TD class="td1"></TD>
                    <TD class="top"></TD>
                    <TD class="topright"></TD>
                </TR>
                <TR>
                    <TD class="middleleft" rowSpan=3></TD>
                    <TD bgcolor="#F0F0F0">
                        <center> <h4>Other Car</h4></center>
                    <TD class="middleright" rowSpan=3></TD>
                </TR>
                <TR>
                    <TD class="middlecenter"></TD>
                </TR>

                <TR>
                    <TD  class="main">
                        <table border="0" width="100%">
                            <logic:iterate id="listO" name="listOther">
                                <tr>
                                    <td width="100">
                                        <a href="Car.do?action=detail&id=<bean:write name="listO" property="detailDTO.carId"/>">
                                            <img width="100" height="100" src="<bean:write name="listO" property="detailDTO.imageUrl"/>"/></a>
                                    </td>
                                    <td width="1" bgcolor="#8DB0D3">

                                    </td>
                                    <td>
                                        &nbsp;&nbsp;&nbsp;&nbsp; <font color="#6395C7" size="2"><bean:write name="listO" property="carName"/></font>
                                        <br>
                                        &nbsp;&nbsp;&nbsp;&nbsp;
                                        <bean:write name="listO" property="detail"/></a><br/>
                                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="Car.do?action=detail&id=<bean:write name="listO" property="detailDTO.carId"/>">Detail</a>
                                    </td>
                                </tr>
                                <tr>
                                    <td height="2" colspan="3">
                                        <center><img src="img/line.png"> </center>
                                    </td>
                                </tr>
                            </logic:iterate>
                        </table>
                    </TD>
                </TR>

                <TR>
                    <TD class="bottom"><IMG border=0 alt="" src="img/pod_main_bottom_left.gif"></TD>
                    <TD class="bottomright"><P align=right>&nbsp;</P></TD>
                    <TD class="bottomleft"><IMG border=0 alt="" src="img/pod_main_bottom_right.gif"></TD>
                </TR>
            </TABLE>
        </TD>
    </TR>
</TABLE>